using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace TimeTableManagement.Entities
{
    /// <summary>
    /// 
    /// </summary>
    public class Tb_Slot_Room
    {
        public int id { get; set; }
        public Nullable<int> id_room { get; set; }
        public Nullable<int> id_slot { get; set; }
        [Required]
        [Display(Name = "Action")]
        public string action { get; set; }
        [Required]
        [Display(Name = "Date")]
        public DateTime date { get; set; }
        [Display(Name = "Description")]
        [DataType(DataType.MultilineText)]
        [System.Web.Mvc.AllowHtml]
        public string description { get; set; }
        [Display(Name = "Status")]
        public Boolean status { get; set; }
        public virtual Tb_Room Tb_Room { get; set; }
        public virtual Tb_Slot Tb_Slot { get; set; }

        public static string getDay(DateTime d)
        {
            return d.Day + "/" + d.Month + "/" + d.Year;
        }
    }
}

